package com.gamewithpurpose.utils;

import java.sql.Timestamp;
import java.util.Calendar;
import java.util.TimeZone;

public class GWPUtils {
	/*
	 * Get current timestamp
	 */
	public static Timestamp getTimestamp(final String timezone) {
		Calendar cal = Calendar.getInstance();
		cal.setTimeZone(TimeZone.getTimeZone(timezone));
		
		return new Timestamp(cal.getTime().getTime());
	}
}
